/*
 * @Author: your name
 * @Date: 2021-12-31 11:12:45
 * @LastEditTime: 2022-07-26 13:50:23
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \AROperationManager_web\src\utils\auth.js
 */
import Cookies from 'js-cookie'

const TokenKey = 'manageToken'

export function getToken () {
  // sessionStorage.getItem(TokenKey)
  return sessionStorage.getItem(TokenKey)
}

export function setToken (token) {
  // sessionStorage.setItem(TokenKey, token)
  Cookies.set('tokenCokens', token)

  return sessionStorage.setItem(TokenKey, token)
}

export function removeToken () {
  // sessionStorage.removeItem(TokenKey)
  return sessionStorage.removeItem(TokenKey)
}
